package com.apptravel.component;

public enum MediaType {
	
	IMAGE(0),
	MUSIC(1),
	VIDEO(2),
    PDF(3);
	
	int type;
	
	MediaType(int type){
		this.type = type;
	}
	
	public static MediaType getType(int type){
		switch(type){
			case 0:
				return IMAGE;
			case 1:
				return MUSIC;
			case 2:
				return VIDEO;
            case 3:
                return PDF;
			default:
				return IMAGE;
		}
	}

}
